package com.joseph.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.joseph.base.BaseController;
import com.joseph.base.BizModel;
import com.joseph.service.SeckillService;

/**
 * @description 
 * @author Joseph_Mok
 * @date 2016年1月20日下午3:01:39
 */

@Controller
public class SecKillController extends BaseController {

	@Resource
	private SeckillService seckillService;
	
	@ResponseBody
	@RequestMapping(value="/seckill")
	public BizModel killsec(String phone) {
		seckillService.doSeckill(phone);
		return new BizModel();
	}
	
}
